{extend name='admin@public/content'}
{block name="content"}
<!-- 表单搜索 开始 -->
<form autocomplete="off" class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
            <input name="tel" value="{$Think.get.tel|default=''}" placeholder="输入手机号" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">支付类型</label>
        <div class="layui-input-inline">
            <select name="put_type" class="layui-select">
                <option value="">请选择</option>
                {foreach($list['type'] as $k=>$v)}
                {if $Think.get.put_type eq $k and $Think.get.put_type !=''}
                <option selected="selected" value="{$k}">{$v}</option>
                {else}
                <option onclick="text()" value="{$k}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">状 态</label>
        <div class="layui-input-inline">
            <select name="status" class="layui-select">
                <option value="">请选择</option>
                {foreach($list['status'] as $k=>$v)}
                {if $Think.get.status eq $k and $Think.get.status !=''}
                <option selected="selected" value="{$k}">{$v}</option>
                {else}
                <option onclick="text()" value="{$k}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'>微信昵称</th>
            <th class='text-left nowrap'>用户名</th>
            <th class='text-left nowrap'>手机号</th>
            <th class='text-left nowrap'>充值金额</th>
            <th class='text-left nowrap'>充值方式</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>交易单号</th>
            <th class='text-left nowrap'>申请时间</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list['list'] as $key=>$vo}
        <tr>
            <td class='text-left nowrap'>
                {$vo.nickname|default="<span class='color-desc'>暂无</span>"|raw}
            </td>
            <td class='text-left nowrap'>
                {$vo.username|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$vo.mobile|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$vo.money|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$vo.recharge_type_name|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$vo.status_name|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$vo.recharge_num|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$vo.addtimes|default='暂无'}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($list.page)}<p>{$list.page|raw}</p>{/if}
    <!--{/empty}-->
</form>
{/block}
{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
</script>

<!--引入标签设置-->
{/block}